home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Invisible Universe
/
Invisible Universe (1995)(Voyager)[Mac-PC].iso
/
mac
/
MOVIES
/
TOC.DIR
/
00008_Script_sbt1x
< prev
next >
Wrap
Text File
|
1995-11-21
|
2KB
|
73 lines
-- standard button trios
--property myRollover, myPressed, myChannel, myScript, ancestor
--on birth me, sp, ro, pr, sc
-- set ancestor to birth(script "sb",sp,sc)
-- set myRollover to (the number of cast ro)
-- set myPressed to (the number of cast pr)
-- set myScript to sc
-- set myChannel to integer(sp)
-- return me
--end
--change appearance
on sbt1rollo myChannel, myRollover
--put ">>>my rollover cast 8 " & myRollover
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myRollover
updateStage
--NOWdmdpuppetSprite myChannel, false
end
on sbt1press theLine
set myChannel = integer(item 4 of theLine)
set myPressed = integer(item 6 of theLine)
--put ">>> on press cast 8"
puppetSprite myChannel,TRUE
set the castNum of sprite myChannel to myPressed
updateStage
puppetSprite myChannel, false
end
on sbt1norm theLine
set myChannel = integer(item 4 of theLine)
puppetSprite myChannel, false
end
--
--
-- Note that for some, we have two args, so get items 7 to 8
--
on sbt1doScript theLine
--global gCursor
-- set dontChangeCursor = (gCursor = 4)
-- set gCursor = 4
-- cursor gCursor
--
cursor 4
hideCOMenus
--
--
-- get the frames to preload
--
set labName = item 8 of theLine
set startFrame = label(labName)
--go to startFrame - 1
set endFrame = label(labName & "M")
pplLoad(startFrame, endFrame)
--pplload(getAt(gPreloadList, myChannel))
-- if not dontChangeCursor then
-- set gCursor = -1
-- cursor gCursor
-- end if
--
cursor -1
set command = (item 7 of theLine) & quote & (item 8 of theLine) & quote
do command
end